<template>
	<view>
		 <navSearchBar  title="资源管理"></navSearchBar>
		  <!-- 页面内容 -->
		  <scroll-view  class="body-field custom-tabbar-page" scroll-y enable-back-to-top>
			<view class="iamge-field" @click="routerTo(1)">  
				<image src="../../static/resource/base.png"  >
					
				</image>
				<view class="text">
					<text class="chinese-title">基地资源</text>
					<text class="english-title">Base resources</text>
				</view>
			</view>
			<view class="iamge-field" @click="routerTo(2)">
				<image src="../../static/resource/teacher.png" ></image>
				<view class="text">
					<text class="chinese-title">讲师资源</text>
					<text class="english-title">Lecturer resources</text>
				</view>
			</view>
			<view class="iamge-field" @click="routerTo(3)">
				<image src="../../static/resource/supplier.png" ></image>
				<view class="text">
					<text class="chinese-title">供应商资源</text>
					<text class="english-title">Supplier resources</text>
				</view>
				
			</view>
			<!-- <view class="image-style" @click="routerTo(1)">
				<view class="text">
					<text class="chinese-title">基地资源</text>
					<text class="english-title">Base resources</text>
				</view>
				<image src="../../static/resource/base.png"  mode="aspectFit">
					
				</image>
			</view>
			<view class="image-style" @click="routerTo(2)">
				<view class="text">
					<text class="chinese-title">讲师资源</text>
					<text class="english-title">Lecturer resources</text>
				</view>
				<image src="../../static/resource/teacher.png" mode="aspectFit"></image>
				
				
			</view>
			<view class="image-style" @click="routerTo(3)">
				<view class="text">
					<text class="chinese-title">供应商资源</text>
					<text class="english-title">Supplier resources</text>
				</view>
				<image src="../../static/resource/supplier.png" mode="aspectFit"></image>
				
				
			</view> -->
		  </scroll-view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			}
		},
		methods: {
			routerTo(type){
				if(type == 1){
					this.$Router.push({name:'baseResource'});
				} else if (type == 2) {
					this.$Router.push({name:'teacherResource'});
				} else{
					this.$Router.push({name:'supplierResource'});
				}
				
			}
		}
	}
</script>

<style lang="scss" scoped>
	.custom-tabbar-page {
	  // height: calc(100vh - (134rpx + env(safe-area-inset-bottom) / 2));
		
	}
	.body-field{
		padding: 0rpx 30rpx ;
		display: flex;
		flex-direction: column;
		.iamge-field{
			position: relative;
			height: 380rpx;
			image{
				margin-top: 20rpx;
				
				height: 380rpx;
				border-radius: 20rpx;
				width: 100%;
			}
			.text{
				position: absolute;
				left: 50%;
				top: 50%;
				transform: translate(-50%, -50%);
				display: flex;
				flex-direction: column;
				align-items: center;
			}
			.chinese-title{
				
				// left: 250rpx;
				// top:148rpx;
				color: #FFFFFF;
				font-size: 48rpx;
				font-weight: $Semibold;
				display: block;
				line-height: 48rpx;
				margin-bottom: 10rpx;
			}
			.english-title{
				font-size: 28rpx;
				line-height: 28rpx;
				color: #FFFFFF;
				font-weight: $Semibold;
			}
			
		}
		.image-style{
			// position: relative;
			height: 380rpx;
			margin-top: 20rpx;
			display: flex;
			flex-direction: column;
			border-radius: 20rpx;
			// box-shadow: 0 0 4rpx 0 rgba(0, 0, 0, 0.1);
			// background-color: #222F4E;
			border: 2rpx solid rgba(0, 0, 0, 0.1);
			image{
				
				margin-top: 20rpx;
				// height: 330rpx;
				border-radius: 20rpx;
				width: 100%;
			}
			.text{
				// position: absolute;
				// left: 50%;
				// top: 50%;
				// transform: translate(-50%, -50%);
				display: flex;
				flex-direction: column;
				align-items: center;
				color:  #222F4E;
				margin-top:20rpx;
			}
			.chinese-title{
				
				// left: 250rpx;
				// top:148rpx;
				
				font-size: 48rpx;
				font-weight: $Semibold;
				display: block;
				line-height: 48rpx;
				margin-bottom: 10rpx;
			}
			.english-title{
				font-size: 28rpx;
				line-height: 28rpx;
				
				font-weight: $Semibold;
			}
		}
		
	}

</style>
